package org.example.service.impl;

import org.example.dao.OrderDao;
import org.example.dao.impl.OrderDaoimpl;
import org.example.entity.Order;
import org.example.service.OrderService;

import java.util.List;

public class OrderServiceImpl implements OrderService {
    OrderDao orderDao=new OrderDaoimpl();
    public Order getOrdById(int id){
        Order order= orderDao.getOrderById(id);
        System.out.println(order);
        return order;
    }

    @Override
    public List<Order> getAllOrd() {
        return orderDao.getAllOrders();
    }
}
